package com.emep.changzhi.analyse.entity.datamonitor;

import lombok.Data;
import org.springframework.data.cassandra.core.cql.Ordering;
import org.springframework.data.cassandra.core.cql.PrimaryKeyType;
import org.springframework.data.cassandra.core.mapping.*;

import java.io.Serializable;

/**
 * @author yangj
 * @version V1.0
 * @Description: 掉线记录
 * @date 2018/2/26  16:49
 */
@Data
@Table(value = "data_dropped_record")
public class DataDroppedRecord implements Serializable{

    private static final long serialVersionUID = 2018289472770876892L;

    @PrimaryKeyColumn(name = "id", ordinal = 0, type = PrimaryKeyType.PARTITIONED)
    private String  id;
    /**
     * 设备mn号
     */
    @Column(value = "mn" )
    private String  mn;
    /**
     * 设备状态
     */
    @Column(value = "run_status" )
    private String  runStatus;
    /**
     * 时间
     */
    @PrimaryKeyColumn(name = "start_time", ordinal = 1, type = PrimaryKeyType.CLUSTERED, ordering = Ordering.DESCENDING)
    private String  startTime;

}
